<?php
/**
 * Created by PhpStorm.
 * User: ming
 * Date: 17-8-16
 * Time: 下午5:06
 */

swoole_timer_tick(2000,function ($timer_id){
   echo "执行 $timer_id \n";
});


swoole_timer_after(3000,function (){
   echo "3000 后执行 \n";
});